package com.exigenservices.demenkov.model.services;

import com.exigenservices.demenkov.model.domain.News;

import java.util.List;

/**
 * Service for news
 *
 * @Author DemYura
 * @Date 24.11.11
 */
public interface NewsService {
    /**
     * Gets news by id
     *
     * @param id of news
     * @return news
     */
    News getNewsById(long id);

    /**
     * Gets all news
     *
     * @return list of news
     */
    List<News> getAllNews();

    /**
     * Gets some latest news
     *
     * @param count of news
     * @return list of latest news
     */
    List<News> getLatestNews(int count);
}
